<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class SwtTradeOrder extends Model
{
	use HasDateTimeFormatter;

    protected $table = 'swt_trade_order';

    protected $guarded = [];

    public function address()
    {
        return $this->belongsTo(SwtTradeAddress::class, 'address_id');
    }

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }

    public function coin()
    {
        return $this->belongsTo(SwtMarketChains::class, 'coin_id');
    }

    public function network()
    {
        return $this->belongsTo(SwtNetwork::class, 'network_id');
    }
}
